home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 44 lines | [TEXT/GEOL] |
- Item 7940080 9-Jan-90 07:03
-
- From: POWERUP.DEV Power Up Software,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Clone()
-
- Attn: MacApp.Tech$
- SentBy: James Plamondon
- Date 1/8/90
- Subject Clone()
- From James Plamondon
- To MacApp.Tech$
-
- Subject: Clone()
- Gentlepersons,
-
- I was about to implement a command which allows the user to redefine a complex
- (but fairly small) object via a dialog. It seemed logical to clone the object
- being redefined, so that I could implement Undo() by simply swapping the old
- object for the modified one. Specifically, I need to clone an object
- containing a list of objects, and the objects in the list (and their objects,
- and their objects...). I was surprised to find no overrides of Clone()
- anywhere in MacApp — meaning that all clones are shallow clones.
-
- This was very unexpected. (I expected to find a OVERRIDE of Clone() in TList,
- at least.) It implies that needing a deep clone is a symptom of an error in
- design. Can anyone enlighten me on this matter?
-
- Looking forward to deeper understanding (if not cloning), I am
-
- Yours,
-
-
- James Plamondon
- Software Engineer
- PowerUp! Software
- 2929 Campus Drive, Suite 300
- San Mateo, CA 94403
- (415) 345-5900 x351
- AppleLink: PowerUp.Eng
-
-